package Transportation;

public class Truck extends GPS {
    private String number;
    private String model;
    private String transporter;
    public Truck(String number,String model,String transporter){
        this.model=model;
        this.transporter=transporter;
        this.number=number;
    }
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getTransporter() {
        return transporter;
    }

    public void setTransporter(String transporter) {
        this.transporter = transporter;
    }

    @Override
    public String getPosition() {
        String position="成都";
        System.out.println("货物当前位置是："+position);
        return position;
    }

    public void transport() {
    }
}


